//适合异步的，commit代替store.commit
//可以把store当成是一个大对象，这儿有commit、dispatch两个内置方法，正常需要store.commit()/store.dispatch()调用，但是这里用ES6解构，使得调用更加方便。
import api from './globalData'
import * as types from "./mutation-types"
export const increase=({commit})=>{commit("increase")};
export const getMineBaseApi=({commit})=>{
    api.mineBaseMsgApi()
        .then(res => {
            console.log(res);//注册成功
            commit(types.GET_BASE_API, res)
        })
};






